package com.wxk.lambda.closure;

import java.util.function.Supplier;

/**
 * wxk
 */
public class ClosureDemo {
    public static void main(String[] args) {

        int n = getNumber().get();

        System.out.println(n);

    }

    private static Supplier<Integer> getNumber() {

        int num = 10;

        return () -> num;
    }


}
